// --------- Object类型 ------------
let obj:Object;

obj=1;
obj=false;
obj='csd';
obj={a:1};
obj=function(){}
obj= ['a']

// 类型简写
let obj2:{}
obj2=obj

//------------ 对象类型  Object- ----------

// 通过方括号访问对象属性类型
type User = {
    name:string;
    age:number
}
type UserName = User['name'];

// 解构赋值注明类型 
const person={id:'130203ac01',name:'网是', desc:'xxxx'}
const {id,desc}:{id:string, desc:string} =person;






